<template>
  <el-button
    :type="type"
    size="mini"
    circle
    style="padding:3px;"
    @click="handleClick"
  >
    <svg-icon :icon-class="icon" />
  </el-button>
</template>

<script>
export default {
  name: 'TreeButton',
  props: {
    type: {
      type: String,
      default: 'text'
    },
    icon: {
      type: String,
      default: ''
    }
  },
  methods: {
    handleClick(event) {
      this.$emit('click', event)
    }
  }
}
</script>
